package com.numberma.userservice.Utils;

import com.numberma.userservice.entity.Log;

import java.time.LocalDateTime;

public class LogBuildUtil {
    public static Log build(Long userId, String action, String ip, LocalDateTime operationTime){
         return new Log(userId, action,ip,operationTime);
    }
    public static Log build(Long userId, String action, String ip, String detail,LocalDateTime operationTime){
         return new Log(userId, action,ip,detail,LocalDateTime.now());
    }
}
